xenstored: allow guest to shutdown all its watches/transactions
authorOlaf Hering <olaf@aepfle.de>
Thu, 15 Sep 2011 10:08:05 +0000 (11:08 +0100)
committerOlaf Hering <olaf@aepfle.de>
Thu, 15 Sep 2011 10:08:05 +0000 (11:08 +0100)
commit1f9d04fb021cbf35cc420d401a88c696d6524c14
treefaf66934ac97c71f944e7d33cd558295fc03bd02
parentdcbc297aea6a159f2f5fad5de84666f23c2d17ad
xenstored: allow guest to shutdown all its watches/transactions

During kexec all old watches have to be removed, otherwise the new
kernel will receive unexpected events. Allow a guest to reset itself
and cleanup all of its watches and transactions.

Add a new XS_RESET_WATCHES command to do the reset on behalf of the
guest.

(Changes by iwj: specify the argument to be a single nul byte.  Permit
read-only clients to use the new command.)

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
docs/misc/xenstore.txt
tools/xenstore/xenstored_core.c
tools/xenstore/xenstored_domain.c
tools/xenstore/xenstored_domain.h
xen/include/public/io/xs_wire.h